package com.zmn.oms.dubbo.interfaces.saas;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.saas.SaasOrderDetailDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：saas订单查询
 *
 * @author heciqi
 * @date 2021/7/13 11:13
 */
@Api(
		value = "工单查询",
		tags = {"工单查询"}
)
public interface SaasOrderWorkListRemoteService {

	/**
	 * 根据订单id和工单id查询工单详情
	 * @param orderId
	 * @param workId
	 * @return
	 */
	@ApiOperation(
			value = "根据订单id和工单id查询工单详情",
			response = ResponseDTO.class,
			tags = {"工单查询"}
	)
	ResponseDTO<SaasOrderDetailDRO> getOrderDetailById(@NotNull(message = "入参不能为空") @ApiParam(value = "订单id", required = true) Long orderId,
													   @NotNull(message = "入参不能为空") @ApiParam(value = "工单id", required = true) Long workId);

}
